unit BD_LJ_Main;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BD_LabJack, Vcl.ComCtrls;

type
  TfrmMain = class(TForm)
    sbStatus: TStatusBar;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmMain: TfrmMain; LJ: TLabJack;

implementation

{$R *.dfm}

procedure TfrmMain.FormCreate(Sender: TObject);
begin
  try
    LJ := TLabJack.Create;
    LJ.InitLabJack;
  except
    ShowMessage('Unable to connect to LabJack.');
  end;
end;

end.
